package com.max.cms0.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.max.cms0.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.max.cms0.entity.ext.userExtend;
import org.apache.ibatis.annotations.Param;

/**
* @author lenovo
* @description 针对表【cms_user】的数据库操作Mapper
* @createDate 2024-11-18 14:40:07
* @Entity com.max.cms0.entity.User
*/
public interface UserMapper extends BaseMapper<User> {
    //新增方法
//分页+条件查询用户(含角色)
    IPage<userExtend> queryAllUserWithRole(IPage<userExtend>
                                                   page,
                                           @Param("username") String
                                                   username,
                                           @Param("status") String status,
                                           @Param("roleId") Integer roleId,
                                           @Param("isVip") Integer isVip);
}




